using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Resources;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace KPIS.GERP.Models.ICM
{
	[DataContract, Table("IcmMasCommitteeMapping")]
    public class MasCommitteeMapping
    {

		[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
		[DataMember, Display(Name = "ComMapId", ResourceType = typeof(Resources.MasCommitteeMappingResource))]
        public int ComMapId { get; set; }

        [ForeignKey("MasPurchaseMapping")]
		[DataMember, Display(Name = "PcMapId", ResourceType = typeof(Resources.MasCommitteeMappingResource))]
        public int PcMapId { get; set; }

        [ForeignKey("MasCommitteeFunction")]
		[DataMember, Display(Name = "ComFuncId", ResourceType = typeof(Resources.MasCommitteeMappingResource))]
        public int ComFuncId { get; set; }

        [ForeignKey("MasCommitteePosition")]
		[DataMember, Display(Name = "ComPosId", ResourceType = typeof(Resources.MasCommitteeMappingResource))]
        public int ComPosId { get; set; }

		[DataMember, Display(Name = "AmountType", ResourceType = typeof(Resources.MasCommitteeMappingResource))]
        public string AmountType { get; set; }

		[DataMember, Display(Name = "MinAmount", ResourceType = typeof(Resources.MasCommitteeMappingResource))]
        public Nullable<double> MinAmount { get; set; }

		[DataMember, Display(Name = "MaxAmount", ResourceType = typeof(Resources.MasCommitteeMappingResource))]
        public Nullable<double> MaxAmount { get; set; }

		[DataMember, Display(Name = "RecordStatus", ResourceType = typeof(Resources.MasCommitteeMappingResource))]
        public string RecordStatus { get; set; }

		[DataMember, Display(Name = "CreatedBy", ResourceType = typeof(Resources.MasCommitteeMappingResource))]
        public Nullable<int> CreatedBy { get; set; }

		[DataMember, Display(Name = "CreatedWhen", ResourceType = typeof(Resources.MasCommitteeMappingResource))]
        public Nullable<System.DateTime> CreatedWhen { get; set; }

		[DataMember, Display(Name = "UpdatedBy", ResourceType = typeof(Resources.MasCommitteeMappingResource))]
        public Nullable<int> UpdatedBy { get; set; }

		[DataMember, Display(Name = "UpdatedWhen", ResourceType = typeof(Resources.MasCommitteeMappingResource))]
        public Nullable<System.DateTime> UpdatedWhen { get; set; }

		[DataMember, Display(Name = "RestoredBy", ResourceType = typeof(Resources.MasCommitteeMappingResource))]
        public Nullable<int> RestoredBy { get; set; }

		[DataMember, Display(Name = "RestoredWhen", ResourceType = typeof(Resources.MasCommitteeMappingResource))]
        public Nullable<System.DateTime> RestoredWhen { get; set; }
    

		[DataMember, Display(Name = "MasCommitteeFunction", ResourceType = typeof(Resources.MasCommitteeMappingResource))]
        public virtual MasCommitteeFunction MasCommitteeFunction { get; set; }

		[DataMember, Display(Name = "MasCommitteePosition", ResourceType = typeof(Resources.MasCommitteeMappingResource))]
        public virtual MasCommitteePosition MasCommitteePosition { get; set; }

		[DataMember, Display(Name = "MasPurchaseMapping", ResourceType = typeof(Resources.MasCommitteeMappingResource))]
        public virtual MasPurchaseMapping MasPurchaseMapping { get; set; }

    }
}